<?php
/*
----------------------------------------------------------
//	Usage class ErrorHandler
//	The error message will be auto-displayed in error.html
//	If you want to display error message, you only write code below:
//	ErrorHandler::add('_LB_CONSTANT');
//	Note: _LB_CONSTANT declared in file .ini
----------------------------------------------------------
*/
class ErrorHandler
{
	public static $err_message = array();
	
	function ErrorHandler()
	{
		
	}
	
	public static function add($message)
    {
        self::$err_message[] = $message;
    }
	
	public static function getError()
    {
        return self::$err_message;
    }
	
	
	public static function getCount()
    {
        return count(self::$err_message);
    }

}

?>